package com.wxy.itcast.springbootwebday19.interceptor;

import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class CustonInterceptor  extends HandlerInterceptorAdapter {
    @Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {


        response.sendRedirect("/user/test03");
//        request.getRequestDispatcher("/tests01").forward(request,response);
        return false;




    }
}
